2-d numbers, practical applications


to include numbers outside the reference square


working version




1.



scalex = 2 * abs(x - 0.5) 
scaley = 2 * abs(y - 0.5)
scalez = 2 * abs(z - 0.5)
 ..
 ..



scalenum = max(scalex, scaley, scalez, ...)


	x2 = (x - 0.5) / scalenum * 2
	y2 = (y - 0.5) / scalenum * 2
	z2 = (z - 0.5) / scalenum * 2
	 ..
	 ..



	calculate the 2-d number from the x2, y2, z2 etc. figures

		(using conversion rountines that operate with values from 0 to 1.0)

	or, conversion routines that operate with 'scalenum'


2.


record the number as scale, 2-d_num


	e.g

		2.5, 4124124



The first number is a normal base-10 decimal number




3.

converting back


	x1 = 0.5 + (x - 0.5) * scalenum
	y1 = 0.5 + (y - 0.5) * scalenum
	z1 = 0.5 + (z - 0.5) * scalenum
	 ..
 	 ..


using conversion routines to extract the x, y, z values from the 2-d number, (returning results 

	in the range 0 to 1.0)






		


